package com.dcw.lixb.designmode.decorator;

/**
 * @author lixiaobin
 * @date 2020-07-22 15:48:38
 * @desc 描述信息
 */
public class RedShapeDecorator extends ShapeDecorator {
    public RedShapeDecorator(Shape decoratedShape) {
        super(decoratedShape);
    }

    @Override
    public void draw() {
        if (null != decoratedShape) {
            decoratedShape.draw();
        }
        setRedBorder(decoratedShape);
    }

    private void setRedBorder(Shape decoratedShape) {
        System.out.println("Border Color : Red");
    }
}
